let laseEvent;
['click', 'touchstart', 'mousedown', 'keydown', 'mouseover'].forEach(
  eventType => {
    document.addEventListener(
      eventType,
      event => {
        laseEvent = event;
      },
      {
        capture: true,
        passive: true, // 默认不阻止默认时间
      }
    );
  }
);
export function getLastEvent() {
  return laseEvent;
}
